import request from '@/utils/request'

// 登录
export function login (data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data,
    needCatch: true
  })
}
// 获取用户信息
export function sysProfile () {
  return request({
    url: '/sys/profile',
    method: 'post',
    needToken: true
  })
}
// 获取员工个人基本信息
export function sysUser (id) {
  return request({
    url: '/sys/user/' + id,
    needToken: true
  })
}

export function getInfo (token) {}

export function logout () {}
